package main

import (
	"net"
	"fmt"
)

func main()  {
	conn, err := net.Dial("tcp", "127.0.0.1:8000")
	if err != nil{
		 fmt.Println(err)
		 return
	}
	defer conn.Close()

	//发送数据
	buf := []byte("are you ok")
	conn.Write(buf)
}
